<?php


namespace App\Http\Controllers\Admin;


use App\Http\Controllers\Controller;
use App\Services\Admin\TaskService;
use Illuminate\Http\Request;

class TaskController extends Controller
{
    private $taskService;

    public function __construct(Request $request, TaskService $taskService)
    {
        $this->request = $request;
        $this->taskService = $taskService;
    }

    public function getTaskInfo(Request $request)
    {
        $params = $request->post();
        $result = $this->taskService->getTaskInfo($params);
        return $result;
    }

    public function createTaskInfo()
    {
        $result = $this->taskService->createTaskInfo();
        return $result;
    }

}
